package com.munichosica.myapp.dao;

import com.munichosica.myapp.dto.Persona;
import com.munichosica.myapp.exceptions.PersonaDaoException;

public interface PersonaDao {
	public Persona insertar(Persona persona) throws PersonaDaoException;
	public Persona modificar(Persona persona) throws PersonaDaoException;
	public Persona obtener(Long codigo) throws PersonaDaoException;
	public void eliminar(Persona persona) throws PersonaDaoException;
	public boolean existeDniPersona(String dni) throws PersonaDaoException;
	public Persona obtenerPorDni(String dni)throws PersonaDaoException;
}
